import request from '@/utils/request'

// 查询设备工单列表
export function selectFlow(query) {
  return request({
    url: '/base/flow/select',
    method: 'get',
    params: query
  })
}
// 查询设备工单列表
export function listFlow(query) {
  return request({
    url: '/base/flow/list',
    method: 'get',
    params: query
  })
}

// 查询设备工单详细
export function getFlow(id) {
  return request({
    url: '/base/flow/' + id,
    method: 'get'
  })
}

// 新增设备工单
export function addFlow(data) {
  return request({
    url: '/base/flow',
    method: 'post',
    data: data
  })
}

// 修改设备工单
export function updateFlow(data) {
  return request({
    url: '/base/flow',
    method: 'put',
    data: data
  })
}

// 删除设备工单
export function delFlow(id) {
  return request({
    url: '/base/flow/' + id,
    method: 'delete'
  })
}


// 审核设备工单
export function checkFlow(data) {
  return request({
    url: '/base/flow/check',
    method: 'post',
    data: data
  })
}
